package com.xwb.mapper;

import java.sql.SQLException;
import java.util.ArrayList;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xwb.pojo.Book;
import com.xwb.pojo.Review;

@Mapper
public interface BookMapper {
	ArrayList<Book> list();
	Book findByid(Integer bid);
	void addreview(Review review);
	void updatawant(@Param("bid")Integer bid,@Param("bwant")Integer bwant);
	ArrayList<Review> findreviewByid(Integer bid);
	
}
